#ifndef MAINWINDOW_H
#define MAINWINDOW_H

//#pragma execution_character_set("utf-8")

#include <QMainWindow>

class MapBridge;
class QWebChannel;
class QWebEngineView;

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void slotMapLoadFinished(bool state);

private:
    void loadMap();

private:
    Ui::MainWindow *ui;
    MapBridge* m_mapBridge{nullptr};
    QWebChannel* m_channel{nullptr};
    QWebEngineView* m_wgtMapView{nullptr};
};
#endif // MAINWINDOW_H
